package yunhe.biz;

import java.util.ArrayList;
import java.util.HashMap;

import yunhe.entity.Customer;

public interface CustomerBiz {
	//增
		/**
		 * 添加客户
		 * @param product
		 * @return
		 */
		boolean addCustomer(Customer customer);
		//删
		/**
		 * 删除客户
		 * @param proBarCode
		 * @return
		 */
		boolean delCustomer(String customerId);
		//改
		/**
		 * 更改客户
		 * @param product
		 * @return
		 */
		boolean updateCustomer(Customer customer);
		//查
		/**
		 * 查询所有客户
		 * @return
		 */
		ArrayList<Customer> getAllCustomer(HashMap<String,String> searchMap);
		/**
		 * 分页查询客户
		 * @param curPage
		 * @param pageSize
		 * @return
		 */
		ArrayList<Customer> getCustomerByPage(int curPage, int pageSize);
		/**
		 * 客户总条数
		 * @return
		 */
		int getCusCount();
		
}
